<style>
td {
	border-bottom:#13B1E4 1px solid;
	border-right:#13B1E4 1px solid;}

</style>


<script type="text/javascript">

function doDelete(url)
{
	var a = confirm('Are you sure?');
	if(a)
	{
		window.location = url;
	}
}
</script>
<!-- CONTENT START -->
<div id="content">

<!-- LEFT START -->
<?php
include ('themes/'.$this -> theme.'/left.php');
?>
<!-- LEFT END -->

<!-- RIGHT START -->
<div id="right">

<h2 class="right_heading">User Manager</h2>
<div id="shop_anounce">
<form name="frm-userManager" method="post" action="?page=sendEmailTemplate" >
<a href="?page=sendEmailTemplate">Send Eamil to Selected Users</a>
<table width="650" border="0">
  <tr>
  	<td width="53" bgcolor="#CCCCCC">Select</td>
    <td width="345" bgcolor="#CCCCCC">Email Address</td>
    <td width="106" bgcolor="#CCCCCC">View</td>
    <td width="128" bgcolor="#CCCCCC">Delete</td>
  </tr>
  <?php
  foreach($arrUsersInfo as $usersInfo):
    
  $urlDelete = "?page=userManager&sub=doDelete&id=$usersInfo[userID]";
  $urlEdit = "?page=updateUser&id=$usersInfo[userID]";  
  ?>
  <tr>
	<td><input type="checkbox" name="userCheckEmail[]" id="userCheckEmail[]" value="<?= $usersInfo['userEmail']?>"  /></td>
  	<td><?= $usersInfo['userEmail']?></td>
    <td>
    <a href="<?= $urlEdit?>"><img src="iconset/pencil_16.png" alt="Edit" border="0" /></a></td>
    <td>
    <a href="javascript:doDelete('<?= $urlDelete?>')">
    <img src="iconset/delete_16.png" alt="Delete" border="0" /></a>
    </td>
  </tr>
  <?php
  endforeach;
  ?>
  <tr>
  	<td width="53" bgcolor="#CCCCCC"></td>
    <td width="345" bgcolor="#CCCCCC"></td>
    <td width="106" bgcolor="#CCCCCC"></td>
    <td width="128" bgcolor="#CCCCCC"><input type="submit" name="sendEmail" id="sendEmail" value="Send Eamil to Selected Users" /></td>
  </tr>
</table>
</form>
</div>
</div>
<!-- RIGHT END -->

<!-- Just to increase height automatically --><div id="height_increaser"></div>

</div>
<!-- CONTENT END -->
<!--<div id="content_end"></div>-->